package cn.itcast.bos.base.service;

import java.util.List;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import cn.itcast.bos.domain.base.Area;

@Path("/")
@Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_ATOM_XML})
@Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_ATOM_XML})
public interface AreaService {

	void setAreas(List<Area> list);
	public Page<Area> searchArea(Specification<Area> spec,Pageable pageable);
	
	@GET
	@Path("/area")
	public Area findByProvinceAndCityAndDistrict(@QueryParam("address")String [] address);
}
